home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
lang
/
ace102.lha
/
include
/
req.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-30
|
613b
|
32 lines
{ return path and name of a file
via a WB 2.04 ASL file requester }
#include <stddef.h>
SUB request_file$
declare function AllocFileRequest& library asl
declare function FreeFileRequest library asl
declare function RequestFile& library asl
library asl
FileReq&=AllocFileRequest
response&=RequestFile(FileReq&)
if response& <> NULL then
file$=cstr(peekl(FileReq&+4))
dir$=cstr(peekl(FileReq&+8))
path$=dir$
if right$(dir$,1) <> ":" and dir$<>"" then path$=path$+"/"
path$=path$+file$
else
path$=""
end if
FreeFileRequest(FileReq&)
library close asl
request_file$=path$
END SUB